home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-08-14 | 2.2 KB | 60 lines | [TEXT/MPCC] |
- THIS FOLDER CONTAINS A SAMPLE CODE APPLICATION TO GO WITH AN ARTICLE
- IN DEVELOP ISSUE 23.
-
- It's a real skanky app, but I does show how to do the following:
-
- • Create all of the supplied geometry types supplied with QuickDraw 3D 1.0
- • The mesh allows texture mapping, by providing UV parameterization, you can
- use the routine TextureGroup() to select a pict file to texture both the
- mesh, nurb patch and the box objects. Supplying UVs for the other objects
- is left as an exercise for the reader.
-
- It uses a really neat shell developed by Nitin Ganatra, this is worth looking
- at since it shows "the right" way to do a number of things.
-
- See Robert Dierke's excellent trigrid sample app for a more complex example
- of working with geometries. This is included as part of the 1.0 seed kit
- on the CD that accompanies the develop issue 23 article.
-
- This has more bugs than a termite hill, we just wanted to do something
- quick and dirty to show what was going on here. Open a new window from
- the file menu, and open a tool palette from the same menu. This has a
- series of popups that allow you to mess with the appearence and geometry
- being shown, also the renderer.
-
- By using per-face and per-vertex interpolation, you can see the difference
- that attatching attributes at the face and vertex level in the way the
- geometry is drawn. For example with the triangle do the following:
-
- Select triangle from the geometry popup in the tool palette
- Select flat from the controls popup
- Select interactive SW from the renderer menu
-
- You'll see that you have a flat shaded brown triangle
-
- Now select per-vertex from the controls popup
-
- Now you'll see that the colors at the vertices are drawn
-
- Look at the code in Geometry.c to see how to setup the colors both at
- the geometry level and at the vertex level.
-
- You can have more than one geometry window open at a time, which is
- pretty cool.
-
- Bugs:
- ----
-
- The tool palette doesn't update properly on a context switch and does
- not show initial settings correctly.
-
-
- Please send comments and bugs to NICKT or PFF or escherdude@eworld.com or
- nick_thompson@quickmail.apple.com
-
- Look for updated versions of this app on the net and dev CDs
-
- Enjoy!
-
- Nick Thompson
- Developer Support